package com.yy.common.utils;

import cn.hutool.crypto.digest.DigestUtil;
import org.apache.commons.codec.net.URLCodec;
import org.springframework.stereotype.Component;

import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;

/**
 * ClassName: MD5Util
 * Package: com.yy.utils
 * Description:
 *
 * @Author yy
 * @Create 2023-11-30 18:27
 * @Version 1.0
 */
@Component
public final class MD5Util {
    public static String encrypt(String strSrc) {
        return DigestUtil.md5Hex(strSrc);
    }
}
